package day05;

import java.util.Scanner;

public class test01 {
    public static void main(String[] args) {
        //回文数判断
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要判断的数字：");
        int n = sc.nextInt();
        int temp = n;

        int m = 0;
        int g;
        while (n != 0) {
            g = n % 10;
            n = n / 10;
            m = m * 10 + g;

        }
        System.out.println(m);
        if (m == temp) {
            System.out.println("是");
        } else {
            System.out.println("不是");
        }

    }
}
